package com.iwdnb.gkgz.ui.job;

import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.JSON;

import cn.hutool.core.date.DateUtil;
import com.iwdnb.gkgz.application.service.StockDayDataSerivce;
import com.iwdnb.gkgz.common.model.dto.StockDayData;
import com.iwdnb.gkgz.common.utils.WorkDayUtils;
import com.iwdnb.job.annotation.Job;
import com.iwdnb.job.handler.BaseJobHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import static com.iwdnb.gkgz.common.utils.WorkTimeUtils.isWorkingTime;

/**
 * 股票实时信息获取
 */
@Slf4j
//@Job(cron = "*/5 * 9,10,11,13,14,15 * * ?")
@Deprecated
public class StockRealtimeJob extends BaseJobHandler {

    @Autowired
    private StockDayDataSerivce stockDayDataSerivce;

    @Override
    public boolean doProcess(String parameter) {
        if (!isWorkingTime()) {
            return true;
        }
        //List<StockDayData> stockDayDataList = stockDayDataSerivce.syncRealtimeData();
        //log.info("实时数据:" + JSON.toJSONString(stockDayDataList));
        return true;
    }

}
